/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PCFGRuleManager;

/**
 *
 * @author tuyentran
 */
public class PCFGParsingRule {
    private String leftSide;
    private String rightSide;
    private double leftProbability;
    private double rightProbability;
    
    public PCFGParsingRule(String leftSide, String rightSide){
        this.leftSide = leftSide;
        this.rightSide = rightSide;
    }

    /**
     * @return the leftSide
     */
    public String getLeftSide() {
        return leftSide;
    }

    /**
     * @return the rightSide
     */
    public String getRightSide() {
        return rightSide;
    }

    /**
     * @return the left probability
     */
    public double getLeftProbability() {
        return leftProbability;
    }

    /**
     * @function set the value for leftProbability and rightProbability
     * @param leftProbability
     * @param rightProbability 
     */
    public void setProbability(double leftProbability, double rightProbability) {
        this.leftProbability = leftProbability;
        this.rightProbability = rightProbability;
    }

    /**
     * @return the rightProbability
     */
    public double getRightProbability() {
        return rightProbability;
    }
}
